(()=>{var Rn=Object.create;var Q=Object.defineProperty;var Jt=Object.getOwnPropertyDescriptor;var Pn=Object.getOwnPropertyNames,$t=Object.getOwnPropertySymbols,jn=Object.getPrototypeOf,Zt=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable;var Yt=(t,e,n)=>e in t?Q(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Be=(t,e)=>{for(var n in e||(e={}))Zt.call(e,n)&&Yt(t,n,e[n]);if($t)for(var n of $t(e))Bn.call(e,n)&&Yt(t,n,e[n]);return t};var qn=t=>Q(t,"__esModule",{value:!0}),s=(t,e)=>Q(t,"name",{value:e,configurable:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ln=(t,e,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Pn(e))!Zt.call(t,r)&&r!=="default"&&Q(t,r,{get:()=>e[r],enumerable:!(n=Jt(e,r))||n.enumerable});return t},U=t=>Ln(qn(Q(t!=null?Rn(jn(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),Ot=(t,e,n,r)=>{for(var o=r>1?void 0:r?Jt(e,n):e,c=t.length-1,l;c>=0;c--)(l=t[c])&&(o=(r?l(e,n,o):l(o))||o);return r&&o&&Q(e,n,o),o};var w=m((To,Me)=>{var Qt,Xt,It,Nt,er,tr,rr,nr,ir,qe,wt,or,sr,ar,X,cr,ur,lr,fr,dr,yr,pr,hr,mr,Le;(function(t){var e=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&undefined?define("tslib",["exports"],function(r){t(n(e,n(r)))}):typeof Me=="object"&&typeof Me.exports=="object"?t(n(e,n(Me.exports))):t(n(e));function n(r,o){return r!==e&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(c,l){return r[c]=o?o(c,l):l}}s(n,"createExporter")})(function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(r[c]=o[c])};Qt=s(function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(r,o);function c(){this.constructor=r}s(c,"__"),r.prototype=o===null?Object.create(o):(c.prototype=o.prototype,new c)},"__extends"),Xt=Object.assign||function(r){for(var o,c=1,l=arguments.length;c=0;g--)(y=r[g])&&(d=(f<3?y(d):f>3?y(o,c,d):y(o,c))||d);return f>3&&d&&Object.defineProperty(o,c,d),d},"__decorate"),er=s(function(r,o){return function(c,l){o(c,l,r)}},"__param"),tr=s(function(r,o){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,o)},"__metadata"),rr=s(function(r,o,c,l){function f(d){return d instanceof c?d:new c(function(y){y(d)})}return s(f,"adopt"),new(c||(c=Promise))(function(d,y){function g(H){try{h(l.next(H))}catch(Z){y(Z)}}s(g,"fulfilled");function A(H){try{h(l.throw(H))}catch(Z){y(Z)}}s(A,"rejected");function h(H){H.done?d(H.value):f(H.value).then(g,A)}s(h,"step"),h((l=l.apply(r,o||[])).next())})},"__awaiter"),nr=s(function(r,o){var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},l,f,d,y;return y={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(y[Symbol.iterator]=function(){return this}),y;function g(h){return function(H){return A([h,H])}}function A(h){if(l)throw new TypeError("Generator is already executing.");for(;c;)try{if(l=1,f&&(d=h[0]&2?f.return:h[0]?f.throw||((d=f.return)&&d.call(f),0):f.next)&&!(d=d.call(f,h[1])).done)return d;switch(f=0,d&&(h=[h[0]&2,d.value]),h[0]){case 0:case 1:d=h;break;case 4:return c.label++,{value:h[1],done:!1};case 5:c.label++,f=h[1],h=[0];continue;case 7:h=c.ops.pop(),c.trys.pop();continue;default:if(d=c.trys,!(d=d.length>0&&d[d.length-1])&&(h[0]===6||h[0]===2)){c=0;continue}if(h[0]===3&&(!d||h[1]>d[0]&&h[1]=r.length&&(r=void 0),{value:r&&r[l++],done:!r}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")},"__values"),wt=s(function(r,o){var c=typeof Symbol=="function"&&r[Symbol.iterator];if(!c)return r;var l=c.call(r),f,d=[],y;try{for(;(o===void 0||o-- >0)&&!(f=l.next()).done;)d.push(f.value)}catch(g){y={error:g}}finally{try{f&&!f.done&&(c=l.return)&&c.call(l)}finally{if(y)throw y.error}}return d},"__read"),or=s(function(){for(var r=[],o=0;o1||g(v,Y)})})}function g(v,Y){try{A(l[v](Y))}catch(xt){Z(d[0][3],xt)}}function A(v){v.value instanceof X?Promise.resolve(v.value.v).then(h,H):Z(d[0][2],v)}function h(v){g("next",v)}function H(v){g("throw",v)}function Z(v,Y){v(Y),d.shift(),d.length&&g(d[0][0],d[0][1])}},"__asyncGenerator"),ur=s(function(r){var o,c;return o={},l("next"),l("throw",function(f){throw f}),l("return"),o[Symbol.iterator]=function(){return this},o;function l(f,d){o[f]=r[f]?function(y){return(c=!c)?{value:X(r[f](y)),done:f==="return"}:d?d(y):y}:d}},"__asyncDelegator"),lr=s(function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=r[Symbol.asyncIterator],c;return o?o.call(r):(r=typeof qe=="function"?qe(r):r[Symbol.iterator](),c={},l("next"),l("throw"),l("return"),c[Symbol.asyncIterator]=function(){return this},c);function l(d){c[d]=r[d]&&function(y){return new Promise(function(g,A){y=r[d](y),f(g,A,y.done,y.value)})}}function f(d,y,g,A){Promise.resolve(A).then(function(h){d({value:h,done:g})},y)}},"__asyncValues"),fr=s(function(r,o){return Object.defineProperty?Object.defineProperty(r,"raw",{value:o}):r.raw=o,r},"__makeTemplateObject");var n=Object.create?function(r,o){Object.defineProperty(r,"default",{enumerable:!0,value:o})}:function(r,o){r.default=o};dr=s(function(r){if(r&&r.__esModule)return r;var o={};if(r!=null)for(var c in r)c!=="default"&&Object.prototype.hasOwnProperty.call(r,c)&&Le(o,r,c);return n(o,r),o},"__importStar"),yr=s(function(r){return r&&r.__esModule?r:{default:r}},"__importDefault"),pr=s(function(r,o,c,l){if(c==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof o=="function"?r!==o||!l:!o.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return c==="m"?l:c==="a"?l.call(r):l?l.value:o.get(r)},"__classPrivateFieldGet"),hr=s(function(r,o,c,l,f){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!f)throw new TypeError("Private accessor was defined without a setter");if(typeof o=="function"?r!==o||!f:!o.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?f.call(r,c):f?f.value=c:o.set(r,c),c},"__classPrivateFieldSet"),mr=s(function(r,o){if(o===null||typeof o!="object"&&typeof o!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof r=="function"?o===r:r.has(o)},"__classPrivateFieldIn"),t("__extends",Qt),t("__assign",Xt),t("__rest",It),t("__decorate",Nt),t("__param",er),t("__metadata",tr),t("__awaiter",rr),t("__generator",nr),t("__exportStar",ir),t("__createBinding",Le),t("__values",qe),t("__read",wt),t("__spread",or),t("__spreadArrays",sr),t("__spreadArray",ar),t("__await",X),t("__asyncGenerator",cr),t("__asyncDelegator",ur),t("__asyncValues",lr),t("__makeTemplateObject",fr),t("__importStar",dr),t("__importDefault",yr),t("__classPrivateFieldGet",pr),t("__classPrivateFieldSet",hr),t("__classPrivateFieldIn",mr)})});var Se=m(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.compose=I.CompositeTransducer=void 0;var ze=class{constructor(e,n){this.a=e,this.b=n}async_(e){return this.b.async_(this.a.async_(e))}sync(e){return this.b.sync(this.a.sync(e))}};s(ze,"CompositeTransducer");I.CompositeTransducer=ze;function Mn(t,e){return new ze(t,e)}s(Mn,"compose");I.compose=Mn});var gr=m(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.decompose=void 0;var zn=Se();function*vt(t){t instanceof zn.CompositeTransducer?(yield*vt(t.a),yield*vt(t.b)):yield t}s(vt,"decompose");Ge.decompose=vt});var P=m(p=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});p.syncReturned=p.asyncReturned=p.isReturned=p.isYielded=p.AsyncIteratorHandler=p.by=p.toAsyncIterable=p.isArrayLike=p.asyncIterable=p.iterable=p.toIterable=p.isPromiseLike=p.isAsyncIterable=p.isIterable=p.value=p.key=p.comparators=p.descending=p.ascending=void 0;var q=w();function De(t,e){return te?1:0}s(De,"ascending");p.ascending=De;function Gn(t,e){return te?-1:0}s(Gn,"descending");p.descending=Gn;function Dn(...t){return(e,n)=>{for(let r of t){let o=r(e,n);if(o!=0)return o}return 0}}s(Dn,"comparators");p.comparators=Dn;function Wn(t){return Object.assign(e=>e[t],{name:t})}s(Wn,"key");p.key=Wn;function Un(t){return e=>e[t]}s(Un,"value");p.value=Un;function Vn(t){return typeof t=="object"&&Symbol.iterator in t}s(Vn,"isIterable");p.isIterable=Vn;function Fn(t){return typeof t=="object"&&Symbol.asyncIterator in t}s(Fn,"isAsyncIterable");p.isAsyncIterable=Fn;function Kn(t){return typeof t=="object"&&"then"in t}s(Kn,"isPromiseLike");p.isPromiseLike=Kn;function Jn(...t){return t}s(Jn,"toIterable");p.toIterable=Jn;function*$n(t){for(let e=0;ee(n[t],r[t])}s(In,"byKey");function Nn(t,e=De){return(n,r)=>e(t(n),t(r))}s(Nn,"byFn");var kt=class{constructor(){this.handlers=[],this.state=[]}value(e){this.newState({value:e,done:!1})}error(e){this.newState(e)}close(e){this.newState({value:e,done:!0})}[Symbol.asyncIterator](){return this}next(){return new Promise((e,n)=>{this.newHandler([e,n])})}newState(e){let n=this.handlers.shift();if(typeof n=="undefined")return this.state.push(e);let r=this.state.shift();if(typeof r=="undefined")return this.consume(e,n);this.consume(r,n),this.newState(e)}newHandler(e){let n=this.state.shift();if(typeof n=="undefined")return this.handlers.push(e);let r=this.handlers.shift();if(typeof r=="undefined")return this.consume(n,e);this.consume(n,r),this.newHandler(e)}consume(e,[n,r]){e instanceof Error?r(e):n(e)}};s(kt,"AsyncIteratorHandler");p.AsyncIteratorHandler=kt;function ei(t){return t&&typeof t=="object"&&"yielded"in t}s(ei,"isYielded");p.isYielded=ei;function ti(t){return t&&typeof t=="object"&&"returned"in t}s(ti,"isReturned");p.isReturned=ti;function ri(t){return q.__asyncGenerator(this,arguments,s(function*(){for(;;){let{value:n,done:r}=yield q.__await(t.next());if(r){yield yield q.__await({returned:n});break}else yield yield q.__await({yielded:n})}},"asyncReturned_1"))}s(ri,"asyncReturned");p.asyncReturned=ri;function*ni(t){for(;;){let{value:e,done:n}=t.next();if(n){yield{returned:e};break}else yield{yielded:e}}}s(ni,"syncReturned");p.syncReturned=ni});var br=m(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.dedupe=ee.DedupeTransducer=void 0;var N=w(),ii=P(),We=class{constructor(e){this.comparator=e}async_(e){return N.__asyncGenerator(this,arguments,s(function*(){var r,o;let c;try{for(var l=N.__asyncValues(e),f;f=yield N.__await(l.next()),!f.done;){let d=f.value;typeof c=="undefined"?yield yield N.__await(d):this.comparator(d,c)!==0&&(yield yield N.__await(d)),c=d}}catch(d){r={error:d}}finally{try{f&&!f.done&&(o=l.return)&&(yield N.__await(o.call(l)))}finally{if(r)throw r.error}}},"async_1"))}*sync(e){let n;for(let r of e)typeof n=="undefined"?yield r:this.comparator(r,n)!==0&&(yield r),n=r}};s(We,"DedupeTransducer");ee.DedupeTransducer=We;function oi(t=ii.ascending){return new We(t)}s(oi,"dedupe");ee.dedupe=oi});var Sr=m(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.drop=te.DropTransducer=void 0;var xe=w(),Ue=class{constructor(e){if(this.count=e,typeof e=="undefined")throw new Error("Count can not be undefined")}async_(e){return xe.__asyncGenerator(this,arguments,s(function*(){var r,o;try{for(var c=xe.__asyncValues(e),l;l=yield xe.__await(c.next()),!l.done;){let f=l.value;--this.count<0&&(yield yield xe.__await(f))}}catch(f){r={error:f}}finally{try{l&&!l.done&&(o=c.return)&&(yield xe.__await(o.call(c)))}finally{if(r)throw r.error}}},"async_1"))}*sync(e){for(let n of e)--this.count<0&&(yield n)}};s(Ue,"DropTransducer");te.DropTransducer=Ue;function si(t){return new Ue(t)}s(si,"drop");te.drop=si});var xr=m(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.dropWhile=re.DropWhileTransducer=void 0;var Oe=w(),Ve=class{constructor(e){this.predicate=e}async_(e){return Oe.__asyncGenerator(this,arguments,s(function*(){var r,o;let c=!0;try{for(var l=Oe.__asyncValues(e),f;f=yield Oe.__await(l.next()),!f.done;){let d=f.value;c&&(c=this.predicate(d)),c||(yield yield Oe.__await(d))}}catch(d){r={error:d}}finally{try{f&&!f.done&&(o=l.return)&&(yield Oe.__await(o.call(l)))}finally{if(r)throw r.error}}},"async_1"))}*sync(e){let n=!0;for(let r of e)n&&(n=this.predicate(r)),n||(yield r)}};s(Ve,"DropWhileTransducer");re.DropWhileTransducer=Ve;function ai(t){return new Ve(t)}s(ai,"dropWhile");re.dropWhile=ai});var Ke=m(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.accept=L.filter=L.FilterTransducer=void 0;var we=w(),Fe=class{constructor(e){this.predicate=e}async_(e){return we.__asyncGenerator(this,arguments,s(function*(){var r,o;try{for(var c=we.__asyncValues(e),l;l=yield we.__await(c.next()),!l.done;){let f=l.value;this.predicate(f)&&(yield yield we.__await(f))}}catch(f){r={error:f}}finally{try{l&&!l.done&&(o=c.return)&&(yield we.__await(o.call(c)))}finally{if(r)throw r.error}}},"async_1"))}*sync(e){for(let n of e)this.predicate(n)&&(yield n)}};s(Fe,"FilterTransducer");L.FilterTransducer=Fe;function Or(t){return new Fe(t)}s(Or,"filter");L.filter=Or;L.accept=Or});var _t=m(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.first=ie.FirstTransducer=void 0;var ne=w(),Je=class{async_(e){return ne.__asyncGenerator(this,arguments,s(function*(){var r,o;try{for(var c=ne.__asyncValues(e),l;l=yield ne.__await(c.next()),!l.done;){let f=l.value;return yield ne.__await(yield yield ne.__await(f))}}catch(f){r={error:f}}finally{try{l&&!l.done&&(o=c.return)&&(yield ne.__await(o.call(c)))}finally{if(r)throw r.error}}},"async_1"))}*sync(e){for(let n of e)return yield n}};s(Je,"FirstTransducer");ie.FirstTransducer=Je;function ci(){return new Je}s(ci,"first");ie.first=ci});var wr=m($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.find=void 0;var ui=Ke(),li=_t(),fi=Se();function di(t){return(0,fi.compose)((0,ui.filter)(t),(0,li.first)())}s(di,"find");$e.find=di});var vr=m(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.flatMap=oe.FlatMapTransducer=void 0;var V=w(),Ze=class{constructor(e){this.mapper=e}async_(e){return V.__asyncGenerator(this,arguments,s(function*(){var r,o;try{for(var c=V.__asyncValues(e),l;l=yield V.__await(c.next()),!l.done;){let f=l.value;yield V.__await(yield*V.__asyncDelegator(V.__asyncValues(this.mapper(f))))}}catch(f){r={error:f}}finally{try{l&&!l.done&&(o=c.return)&&(yield V.__await(o.call(c)))}finally{if(r)throw r.error}}},"async_1"))}*sync(e){for(let n of e)yield*this.mapper(n)}};s(Ze,"FlatMapTransducer");oe.FlatMapTransducer=Ze;function yi(t){return new Ze(t)}s(yi,"flatMap");oe.flatMap=yi});var _r=m(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.transducer=M.identity=M.IdentityTransducer=void 0;var Ye=class{async_(e){return e}sync(e){return e}};s(Ye,"IdentityTransducer");M.IdentityTransducer=Ye;function kr(){return new Ye}s(kr,"identity");M.identity=kr;M.transducer=kr});var Ct=m(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.last=se.LastTransducer=void 0;var ve=w(),Qe=class{async_(e){return ve.__asyncGenerator(this,arguments,s(function*(){var r,o;let c;try{for(var l=ve.__asyncValues(e),f;f=yield ve.__await(l.next()),!f.done;)c=f.value}catch(d){r={error:d}}finally{try{f&&!f.done&&(o=l.return)&&(yield ve.__await(o.call(l)))}finally{if(r)throw r.error}}c!==void 0&&(yield yield ve.__await(c))},"async_1"))}*sync(e){let n;for(n of e);n!==void 0&&(yield n)}};s(Qe,"LastTransducer");se.LastTransducer=Qe;function pi(){return new Qe}s(pi,"last");se.last=pi});var Cr=m(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.map=ae.MapTransducer=void 0;var ke=w(),Xe=class{constructor(e){this.mapper=e}async_(e){return ke.__asyncGenerator(this,arguments,s(function*(){var r,o;try{for(var c=ke.__asyncValues(e),l;l=yield ke.__await(c.next()),!l.done;){let f=l.value;yield yield ke.__await(this.mapper(f))}}catch(f){r={error:f}}finally{try{l&&!l.done&&(o=c.return)&&(yield ke.__await(o.call(c)))}finally{if(r)throw r.error}}},"async_1"))}*sync(e){for(let n of e)yield this.mapper(n)}};s(Xe,"MapTransducer");ae.MapTransducer=Xe;function hi(t){return new Xe(t)}s(hi,"map");ae.map=hi});var At=m(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.scan=ue.ScanTransducer=void 0;var ce=w(),Ie=class{constructor(e,n){this.reducer=e,this.seed=n}async_(e){return ce.__asyncGenerator(this,arguments,s(function*(){var r,o;let c=this.seed;yield yield ce.__await(c);try{for(var l=ce.__asyncValues(e),f;f=yield ce.__await(l.next()),!f.done;){let d=f.value;yield yield ce.__await(c=this.reducer(c,d))}}catch(d){r={error:d}}finally{try{f&&!f.done&&(o=l.return)&&(yield ce.__await(o.call(l)))}finally{if(r)throw r.error}}},"async_1"))}*sync(e){let n=this.seed;yield n;for(let r of e)yield n=this.reducer(n,r)}};s(Ie,"ScanTransducer");ue.ScanTransducer=Ie;function mi(t,e){return new Ie(t,e)}s(mi,"scan");ue.scan=mi});var Ar=m(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.reduce=void 0;var gi=Se(),bi=Ct(),Si=At();function xi(t,e){return(0,gi.compose)((0,Si.scan)(t,e),(0,bi.last)())}s(xi,"reduce");Ne.reduce=xi});var Hr=m(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.reject=void 0;var Oi=Ke();function wi(t){return new Oi.FilterTransducer(e=>!t(e))}s(wi,"reject");et.reject=wi});var Tr=m(j=>{"use strict";Object.defineProperty(j,"__esModule",{value:!0});j.sum=j.subtract=j.add=j.increment=void 0;function vi(t){return t+1}s(vi,"increment");j.increment=vi;function ki(t,e){return e===void 0?n=>t+n:t+e}s(ki,"add");j.add=ki;function _i(t,e){return e===void 0?n=>n-t:t-e}s(_i,"subtract");j.subtract=_i;var Ci=s((t,e)=>t+e,"sum");j.sum=Ci});var nt=m(_=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});_.AsyncSequence=_.Sequence=_.sequence=_.range=_.repeat=_.iterate=void 0;var Ht=Tr(),Tt=P(),Er=Ce();function*tt(t,e){for(;;)yield e,e=t(e)}s(tt,"iterate");_.iterate=tt;function*Ai(t){for(;;)yield t()}s(Ai,"repeat");_.repeat=Ai;function*Hi(t,e,n=1){if(n===0)throw new Error("step can not be 0");if(e===void 0)yield*tt((0,Ht.add)(n),t);else{let r=Math.abs(n);eo>=e)):yield*Et(tt((0,Ht.add)(r),t),(0,Er.takeWhile)(o=>o<=e))}}s(Hi,"range");_.range=Hi;function Et(t,...e){return(0,Tt.isIterable)(t)?new _e(t,e):(0,Tt.isArrayLike)(t)?new _e((0,Tt.iterable)(t),e):new rt(t,e)}s(Et,"sequence");_.sequence=Et;var _e=class{constructor(e,n){this.source=e,this.transducers=n}[Symbol.iterator](){return this.transducers.reduce((e,n)=>n.sync(e),this.source)[Symbol.iterator]()}};s(_e,"Sequence");_.Sequence=_e;var rt=class{constructor(e,n){this.source=e,this.transducers=n}[Symbol.asyncIterator](){return this.transducers.reduce((e,n)=>n.async_(e),this.source)[Symbol.asyncIterator]()}};s(rt,"AsyncSequence");_.AsyncSequence=rt});var jr=m(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.single=void 0;var Rr=w(),Ti=P(),Pr=nt();function Ei(t,...e){return(0,Ti.isIterable)(t)?Ri((0,Pr.sequence)(t,...e)):Pi((0,Pr.sequence)(t,...e))}s(Ei,"single");it.single=Ei;function Ri(t){for(let e of t)return e;throw new Error("Expected a single value")}s(Ri,"toSingle");function Pi(t){var e,n,r,o;return Rr.__awaiter(this,void 0,void 0,function*(){try{for(e=Rr.__asyncValues(t);n=yield e.next(),!n.done;)return n.value}catch(c){r={error:c}}finally{try{n&&!n.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}throw new Error("Expected a single value")})}s(Pi,"toSinglePromise")});var Rt=m(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.array=void 0;var Br=w(),qr=P(),Lr=nt();function ji(t,...e){return(0,qr.isIterable)(t)||(0,qr.isArrayLike)(t)?Bi((0,Lr.sequence)(t,...e)):qi((0,Lr.sequence)(t,...e))}s(ji,"array");ot.array=ji;function Bi(t){let e=[];for(let n of t)e.push(n);return e}s(Bi,"toArray");function qi(t){var e,n,r,o;return Br.__awaiter(this,void 0,void 0,function*(){let c=[];try{for(e=Br.__asyncValues(t);n=yield e.next(),!n.done;){let l=n.value;c.push(l)}}catch(l){r={error:l}}finally{try{n&&!n.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}return c})}s(qi,"toPromiseArray")});var zr=m(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.sort=le.SortTransducer=void 0;var Ae=w(),Li=P(),Mr=Rt(),st=class{constructor(e){this.comparator=e}async_(e){return Ae.__asyncGenerator(this,arguments,s(function*(){let r=yield Ae.__await((0,Mr.array)(e));r.sort(this.comparator),yield Ae.__await(yield*Ae.__asyncDelegator(Ae.__asyncValues(r)))},"async_1"))}*sync(e){let n=(0,Mr.array)(e);n.sort(this.comparator),yield*n}};s(st,"SortTransducer");le.SortTransducer=st;function Mi(t=Li.ascending){return new st(t)}s(Mi,"sort");le.sort=Mi});var Gr=m(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.take=fe.TakeTransducer=void 0;var F=w(),at=class{constructor(e){if(this.count=e,typeof e=="undefined")throw new Error("Count can not be undefined")}async_(e){return F.__asyncGenerator(this,arguments,s(function*(){var r,o;if(this.count<1)return yield F.__await(void 0);try{for(var c=F.__asyncValues(e),l;l=yield F.__await(c.next()),!l.done;){let f=l.value;if(yield yield F.__await(f),--this.count<1)return yield F.__await(void 0)}}catch(f){r={error:f}}finally{try{l&&!l.done&&(o=c.return)&&(yield F.__await(o.call(c)))}finally{if(r)throw r.error}}},"async_1"))}*sync(e){if(!(this.count<1)){for(let n of e)if(yield n,--this.count<1)return}}};s(at,"TakeTransducer");fe.TakeTransducer=at;function zi(t){return new at(t)}s(zi,"take");fe.take=zi});var Dr=m(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.takeWhile=ye.TakeWhileTransducer=void 0;var de=w(),ct=class{constructor(e){this.predicate=e}async_(e){return de.__asyncGenerator(this,arguments,s(function*(){var r,o;try{for(var c=de.__asyncValues(e),l;l=yield de.__await(c.next()),!l.done;){let f=l.value;if(this.predicate(f))yield yield de.__await(f);else return yield de.__await(void 0)}}catch(f){r={error:f}}finally{try{l&&!l.done&&(o=c.return)&&(yield de.__await(o.call(c)))}finally{if(r)throw r.error}}},"async_1"))}*sync(e){for(let n of e)if(this.predicate(n))yield n;else return}};s(ct,"TakeWhileTransducer");ye.TakeWhileTransducer=ct;function Gi(t){return new ct(t)}s(Gi,"takeWhile");ye.takeWhile=Gi});var Ur=m(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0})});var Pt=m(z=>{"use strict";Object.defineProperty(z,"__esModule",{value:!0});z.container=z.lazy=z.replace=void 0;function Vr(t,e,n){return Object.defineProperty(t,e,{value:n})}s(Vr,"replace");z.replace=Vr;function Fr(t,e,n){if(typeof n.get=="undefined")throw new Error("@lazy can only decorate getter methods");return Object.defineProperty(t,e,Object.assign(Object.assign({},n),{get(){return Vr(this,e,n.get.call(this))[e]}}))}s(Fr,"lazy");z.lazy=Fr;function Di(t){return Object.keys(t).reduce((e,n)=>Fr(e,n,{configurable:!0,get:()=>t[n](e)}),{})}s(Di,"container");z.container=Di});var Xr=m(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});lt.AVLTree=void 0;var Kr=w(),ut=P(),Jr=Pt(),R=class{constructor(e){this.comparator=e}static empty(e=ut.ascending){return new jt(e)}static create(e,n,r=ut.ascending){let o=R.empty(r);return new T(r,e,n,o,o)}static of(e,n=ut.ascending){return R.preSorted(e.sort((0,ut.by)(0)),n,R.empty(n))}static preSorted(e,n,r){let o=e.length;switch(o){case 0:return r;case 1:{let[[c,l]]=e;return new T(n,c,l,r,r)}default:{let c=Math.floor(o/2),l=R.preSorted(e.slice(0,c),n,r),f=R.preSorted(e.slice(c+1),n,r),[d,y]=e[c];return new T(n,d,y,l,f)}}}};s(R,"AVLTree");lt.AVLTree=R;var jt=class extends R{constructor(e){super(e);this.isEmpty=!0,this.height=0,this.balance=0}insert(e,n){return new T(this.comparator,e,n,this,this)}contains(e){return!1}lookup(e){}delete(e){return{tree:this}}first(){}last(){}removeFirst(){return{tree:this}}removeLast(){return{tree:this}}toString(){return""}*keys(){}*values(){}*entries(){return[]}};s(jt,"Empty");var T=class extends R{constructor(e,n,r,o,c){super(e);this.key=n,this.value=r,this.left=o,this.right=c,this.isEmpty=!1}insert(e,n){let r=this.comparator(e,this.key);return r===0?new T(this.comparator,e,n,this.left,this.right):r<0?this.replaceLeft(this.left.insert(e,n)):this.replaceRight(this.right.insert(e,n))}contains(e){let n=this.comparator(e,this.key);return n===0?!0:n<0?this.left.contains(e):this.right.contains(e)}lookup(e){let n=this.comparator(e,this.key);return n===0?this.value:n<0?this.left.lookup(e):this.right.lookup(e)}delete(e){let n=this.comparator(e,this.key);if(n===0){if(this.left.isEmpty)return{tree:this.right,key:this.key,value:this.value};if(this.right.isEmpty)return{tree:this.left,key:this.key,value:this.value};let{tree:l,key:f,value:d}=this.left.removeLast();return{tree:Bt(new T(this.comparator,f,d,l,this.right)),key:this.key,value:this.value}}if(n<0){let{tree:l,key:f,value:d}=this.left.delete(e);return{tree:this.replaceLeft(l),key:f,value:d}}let{tree:r,key:o,value:c}=this.right.delete(e);return{tree:this.replaceRight(r),key:o,value:c}}first(){return this.left.isEmpty?this.value:this.left.first()}last(){return this.right.isEmpty?this.value:this.right.last()}removeFirst(){if(this.left.isEmpty)return{tree:this.right,key:this.key,value:this.value};let{tree:e,key:n,value:r}=this.left.removeFirst();return{tree:this.replaceLeft(e),key:n,value:r}}removeLast(){if(this.right.isEmpty)return{tree:this.left,key:this.key,value:this.value};let{tree:e,key:n,value:r}=this.right.removeLast();return{tree:this.replaceRight(e),key:n,value:r}}replaceLeft(e){return Bt(new T(this.comparator,this.key,this.value,e,this.right))}replaceRight(e){return Bt(new T(this.comparator,this.key,this.value,this.left,e))}toString(){return`(${this.left} ${this.key}=${this.value} ${this.right})`}get balance(){return this.left.height-this.right.height}get height(){return Math.max(this.left.height,this.right.height)+1}*keys(){yield*this.left.keys(),yield this.key,yield*this.right.keys()}*values(){yield*this.left.values(),yield this.value,yield*this.right.values()}*entries(){yield*this.left.entries(),yield[this.key,this.value],yield*this.right.entries()}};s(T,"Node");Kr.__decorate([Jr.lazy],T.prototype,"balance",null);Kr.__decorate([Jr.lazy],T.prototype,"height",null);function Bt(t){let e=t.balance;return e==-2?Ui(t):e==2?Wi(t):t}s(Bt,"balance");function Wi(t){let e=t.left.balance;return e==-1?Vi(t):e==1?$r(t):t}s(Wi,"balanceLeft");function Ui(t){let e=t.right.balance;return e==1?Fi(t):e==-1?Zr(t):t}s(Ui,"balanceRight");function $r(t){return Qr(t)}s($r,"balanceLeftLeft");function Vi(t){let e=Yr(t.left);return $r(t.replaceLeft(e))}s(Vi,"balanceLeftRight");function Zr(t){return Yr(t)}s(Zr,"balanceRightRight");function Fi(t){let e=Qr(t.right);return Zr(t.replaceRight(e))}s(Fi,"balanceRightLeft");function Yr(t){let e=t.right,n=e.left,r=t.replaceRight(n);return e.replaceLeft(r)}s(Yr,"rotateLeft");function Qr(t){let e=t.left,n=e.right,r=t.replaceLeft(n);return e.replaceRight(r)}s(Qr,"rotateRight")});var Nr=m(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.unique=pe.UniqueTransducer=void 0;var He=w(),Ki=P(),Ir=Xr(),ft=class{constructor(e){this.comparator=e}async_(e){return He.__asyncGenerator(this,arguments,s(function*(){var r,o;let c=Ir.AVLTree.empty(this.comparator);try{for(var l=He.__asyncValues(e),f;f=yield He.__await(l.next()),!f.done;){let d=f.value;c.contains(d)||(c=c.insert(d,void 0),yield yield He.__await(d))}}catch(d){r={error:d}}finally{try{f&&!f.done&&(o=l.return)&&(yield He.__await(o.call(l)))}finally{if(r)throw r.error}}},"async_1"))}*sync(e){let n=Ir.AVLTree.empty(this.comparator);for(let r of e)n.contains(r)||(n=n.insert(r,void 0),yield r)}};s(ft,"UniqueTransducer");pe.UniqueTransducer=ft;function Ji(t=Ki.ascending){return new ft(t)}s(Ji,"unique");pe.unique=Ji});var en=m(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.WindowedTransducer=me.windowed=void 0;var he=w();function $i(t,e=1,n=!1){return new dt(t,e,n)}s($i,"windowed");me.windowed=$i;var dt=class{constructor(e,n,r){this.size=e,this.step=n,this.remainder=r}async_(e){return he.__asyncGenerator(this,arguments,s(function*(){var r,o;let c=[],l=0;try{for(var f=he.__asyncValues(e),d;d=yield he.__await(f.next()),!d.done;){let y=d.value;if(l>0){l--;continue}c.push(y),c.length===this.size&&(yield yield he.__await([...c]),c=c.slice(this.step),this.step>this.size&&(l=this.step-this.size))}}catch(y){r={error:y}}finally{try{d&&!d.done&&(o=f.return)&&(yield he.__await(o.call(f)))}finally{if(r)throw r.error}}this.remainder&&(yield yield he.__await([...c]))},"async_1"))}*sync(e){let n=[],r=0;for(let o of e){if(r>0){r--;continue}n.push(o),n.length===this.size&&(yield[...n],n=n.slice(this.step),this.step>this.size&&(r=this.step-this.size))}this.remainder&&(yield[...n])}};s(dt,"WindowedTransducer");me.WindowedTransducer=dt});var rn=m(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.zipWithIndex=G.zip=G.ZipTransducer=void 0;var yt=w(),tn=P(),Zi=nt(),Te=class{constructor(e){this.other=e}async_(e){return yt.__asyncGenerator(this,arguments,s(function*(){if(!(0,tn.isAsyncIterable)(this.other))throw new Error("Unsupported operation exception");let r=e[Symbol.asyncIterator](),o=this.other[Symbol.asyncIterator]();for(;;){let[c,l]=yield yt.__await(Promise.all([r.next(),o.next()]));if(c.done||l.done)return yield yt.__await(void 0);yield yield yt.__await([c.value,l.value])}},"async_1"))}*sync(e){if(!(0,tn.isIterable)(this.other))throw new Error("Unsupported operation exception");let n=e[Symbol.iterator](),r=this.other[Symbol.iterator]();for(;;){let o=n.next(),c=r.next();if(o.done||c.done)return;yield[o.value,c.value]}}};s(Te,"ZipTransducer");G.ZipTransducer=Te;function Yi(t){return new Te(t)}s(Yi,"zip");G.zip=Yi;function Qi(){return new Te((0,Zi.range)(0))}s(Qi,"zipWithIndex");G.zipWithIndex=Qi});var Ce=m(b=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0});var S=w();S.__exportStar(Se(),b);S.__exportStar(gr(),b);S.__exportStar(br(),b);S.__exportStar(Sr(),b);S.__exportStar(xr(),b);S.__exportStar(Ke(),b);S.__exportStar(wr(),b);S.__exportStar(_t(),b);S.__exportStar(vr(),b);S.__exportStar(_r(),b);S.__exportStar(Ct(),b);S.__exportStar(Cr(),b);S.__exportStar(Ar(),b);S.__exportStar(Hr(),b);S.__exportStar(At(),b);S.__exportStar(jr(),b);S.__exportStar(zr(),b);S.__exportStar(Gr(),b);S.__exportStar(Dr(),b);S.__exportStar(Ur(),b);S.__exportStar(Nr(),b);S.__exportStar(en(),b);S.__exportStar(rn(),b)});var sn=m(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.caching=be.cache=void 0;function eo(t,e,n){if(typeof n.value!="function")throw new Error("@cache can only decorate methods");let r=new WeakMap;function o(c){let l=r.get(c);if(l)return l;let f=new Map;return r.set(c,f),f}return s(o,"getCache"),Object.defineProperty(t,e,Object.assign(Object.assign({},n),{value:function(...c){let l=JSON.stringify(c),f=o(this),d=f.get(l);if(typeof d!="undefined"||f.has(l))return d;let y=n.value.call(this,...c);return f.set(l,y),y}}))}s(eo,"cache");be.cache=eo;function to(t){let e=new Map;return function(...n){let r=JSON.stringify(n),o=e.get(r);if(typeof o!="undefined"||e.has(r))return o;let c=t(...n);return e.set(r,c),c}}s(to,"caching");be.caching=to});var nn=U(Ce()),Xi=U(P()),Ii=U(Ce());function Ni(t){switch(typeof t){case"undefined":return!0;case"string":return t.trim()==="";case"number":return isNaN(t);case"object":{if(t==null)return!0;if(x.isObject(t))return Object.keys(t).length===0;if(Array.isArray(t))return t.length===0}}return!1}s(Ni,"isEmpty");var ge=class{static noWhitespace(e){return e&&typeof e=="string"?e.replace(/\s+/g,""):""}static startWith(e,n){return e?e.substring(0,n.length)===n:e===n}static endsWith(e,n){return e.substring(e.length-n.length,e.length)===n}static isEmpty(e){return e===void 0||e===null?!0:e.trim().length===0}static isEmail(e){return typeof e=="string"&&this.validEmailPattern.test(e)}static isLowerCase(e){return e===e.toLowerCase()&&e!==e.toUpperCase()}static isUpperCase(e){return e===e.toUpperCase()&&e!==e.toLowerCase()}static kebabCase(e){return ge.delimiterCase(e,"-")}static snakeCase(e){return ge.delimiterCase(e,"_")}static delimiterCase(e,n){return e.replace(/([A-Z][a-z]+|\d+)/gm,`${n}$1`).replace(new RegExp(`^${n}`),"").toLowerCase()}static titleCase(e){return ge.isEmpty(e)?"":e.replace(/\w\S*/g,n=>n.charAt(0).toUpperCase()+n.substr(1).toLowerCase())}static camelCase(e){return ge.isEmpty(e)?"":e.replace(/([A-Za-z]+|\d+)/gm,n=>n.charAt(0).toUpperCase()+n.substr(1).toLowerCase()).replace(new RegExp("^."),n=>n.toLowerCase()).replace(new RegExp(/[_\-\s]/g),"")}},D=ge;s(D,"Strings"),D.validEmailPattern=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/;function Ee(t,e,n){if(e(t))return n(t);switch(typeof t){case"undefined":return;case"object":{if(t===null)return null;if(Array.isArray(t))return t.map(r=>Ee(r,e,n));if(x.isObject(t))return x.keys(t).sort().reduce((r,o)=>{let c=t[o];return r[o]=Ee(c,e,n),r},{})}}return t}s(Ee,"walkValues");function pt(t,e){switch(typeof t){case"undefined":return;case"object":{if(t===null)return null;if(Array.isArray(t))return t.map(n=>pt(n,e));if(x.isObject(t))return x.keys(t).sort().reduce((n,r)=>{let o=t[r];return n[e(String(r))]=pt(o,e),n},{})}}return t}s(pt,"walkKeys");var x=class{static isObject(e){return e&&typeof e=="object"&&(e.constructor===Object||/Object.*native/.test(e.constructor.toString()))}static keys(e){return Object.keys(e)}static values(e){return Object.keys(e).map(n=>e[n])}static entries(e){return Object.keys(e).map(n=>[n,e[n]])}static removeEmpty(e){return e&&(x.isObject(e)?Object.keys(e).reduce((n,r)=>{let o=x.removeEmpty(e[r]);return Ni(o)||(n[r]=o),n},{}):e)}static sort(e){return e&&(Array.isArray(e)?e.map(x.sort):x.isObject(e)?Object.keys(e).sort().reduce((n,r)=>{let o=e[r];return n[r]=x.sort(o),n},{}):e)}static toLowerCase(e){return typeof e=="string"?e.toLowerCase():Array.isArray(e)?e.map(x.toLowerCase):O(()=>x.isObject(e))?Object.entries(e).reduce((n,[r,o])=>(n[r]=x.toLowerCase(o),n),{}):e}static snakeCase(e){return pt(e,D.snakeCase)}static camelCase(e){return pt(e,D.camelCase)}static filter(e,n){let r=x.keys(e).filter(n);return x.pick(e,...r)}static omit(e,...n){return n.reduce((r,o)=>(Reflect.deleteProperty(r,o),r),e)}static pick(e,...n){return n.reduce((r,o)=>(r[o]=e[o],r),{})}};s(x,"Objects");function O(t,e=void 0){try{let n=t();return typeof n=="undefined"?e:n}catch(n){return e}}s(O,"get");var B=(()=>typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof module!="undefined"?module:Function("return this")())();function on(t,e,n){let r=t[e];return typeof r=="undefined"?t[e]=n:Array.isArray(r)?r.indexOf(n)==-1&&r.push(n):t[e]=[r,n],t}s(on,"accumulateMultipleValues");function Re(t=B){return t.triptease=t.triptease||{},t.triptease.onboard=t.triptease.onboard||{},{triptease:t.triptease,onboard:t.triptease.onboard}}s(Re,"globalObjects");var qt=class{constructor(e){let n=qt.RFC_3986.exec(e);if(!n)throw new Error(`Invalid Uri: ${e}`);let[,,r,,o,c,,l,,f]=n;this.scheme=r,this.authority=o?new ht(o):void 0,this.path=c,this.query=l,this.fragment=f}toString(){let e=[];return typeof this.scheme!="undefined"&&e.push(this.scheme,":"),typeof this.authority!="undefined"&&e.push("//",this.authority.toString()),e.push(this.path),typeof this.query!="undefined"&&e.push("?",this.query),typeof this.fragment!="undefined"&&e.push("#",this.fragment),e.join("")}get host(){return this.authority&&this.authority.host}get port(){return this.authority&&this.authority.port}get userInfo(){return this.authority&&this.authority.userInfo}},k=qt;s(k,"Uri"),k.RFC_3986=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;var Lt=class{constructor(e){let n=Lt.RFC_3986.exec(e);if(!n)throw new Error(`Invalid Authority: ${e}`);let[,r,o,c]=n;this.userInfo=r,this.host=o,this.port=c}toString(){let e=[];return typeof this.userInfo!="undefined"&&e.push(this.userInfo,"@"),typeof this.host!="undefined"&&e.push(this.host),typeof this.port!="undefined"&&e.push(":",this.port),e.join("")}},ht=Lt;s(ht,"Authority"),ht.RFC_3986=/(?:([^@]+)@)?([^:]+)(?::([\d]+))?/;var an=U(sn()),cn=U(Pt());var K;(function(r){r.Native="native",r.NonNative="non-native",r.NotImplemented="not-implemented"})(K||(K={}));function un(t,e){return O(()=>e.split(".").reduce((n,r)=>n[r],t))}s(un,"getProperty");function ro(t){return t==null?K.NotImplemented:typeof t=="function"?t.toString().includes("native code")?K.Native:K.NonNative:K.Native}s(ro,"isNative");var mt=class{static exposeApi(){let e=Re(B).triptease;e.native||(e.native=mt)}static getProperty(e){let n=un(B,e);return ro(n)!==K.NonNative?n:un(mt.window,e)}static get window(){let e=B;if(!e.document)return e;try{let n=e.document,r=n.querySelector("[name='triptease.native']");if(r)return r.contentWindow;let o=n.createElement("iframe");return o.style.display="none",o.setAttribute("title","blank"),o.setAttribute("aria-hidden","true"),o.setAttribute("name","triptease.native"),n.documentElement.appendChild(o),o.contentWindow}catch(n){return e}}},C=mt;s(C,"Native"),Ot([an.cache],C,"getProperty",1),Ot([cn.lazy],C,"window",1);var no=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}\.\d{3}Z)?$/;function io(t){return Ee(t,e=>typeof e=="string"&&no.test(e),e=>{let n=new Date(e);return isNaN(n.valueOf())?e:n})}s(io,"convertDates");var oo=C.getProperty("JSON.parse"),ln=C.getProperty("JSON.stringify"),so=C.getProperty("Date.prototype.toISOString"),ao=C.getProperty("atob"),co=C.getProperty("btoa"),J=class{static parse(e){return oo(e)}static parseWithDates(e){return io(J.parse(e))}static stringify(e){return ln(this.clean(e))}static clean(e){return Ee(e,n=>{let r=typeof n;switch(r){case"undefined":case"string":case"number":case"boolean":return!0;case"object":{if(n===null)return!0;if(Array.isArray(n)||x.isObject(n))return!1;if("toJSON"in n)return!0}}throw new Error(`Illegal JsonValue: ${r} ${n} `)},n=>n instanceof Date?so.call(n):n)}static atob(e){try{let n=ao(e);return J.parseWithDates(n)}catch(n){}}static btoa(e){try{if(!x.isObject(e))return;let n=ln(e);return co(n)}catch(n){}}};s(J,"Json");function Mt(t,e=!0){return t?(t.indexOf("?")==0&&(t=t.substring(1,t.length)),t.split("&").map(function(n){return n.split("=")}).reduce(function(n,r){let o=r[0],c=r[1];if(!o)return n;let l=fn(c),f=e?uo(l):l;return on(n,fn(o),f)},{})):{}}s(Mt,"queryObject");function fn(t){return O(()=>decodeURIComponent(t.replace(/\+/g,"%20")),t)}s(fn,"decode");function uo(t){try{return J.parse(t)}catch(e){return t}}s(uo,"coerce");var dn=C.getProperty("console.log"),lo=C.getProperty("console.error"),fo=C.getProperty("console.debug"),zt=class{constructor(e=dn,n=lo,r=fo||dn){this.log=e;this.error=n;this.debug=r}};s(zt,"ConsoleLogger");var Gt=class{constructor(){this.log=s(()=>{},"log");this.error=s(()=>{},"error");this.debug=s(()=>{},"debug")}};s(Gt,"NoOpLogger");var yn="triptease-debug",yo=256;function po(t,e=yn){let n=O(()=>{var r;return Mt((r=t.location)==null?void 0:r.search,!1)[e]})||O(()=>{var r;return Mt(new k((r=t.location)==null?void 0:r.originalHref).query,!1)[e]})||O(()=>{var r,o;return(o=(r=t.process)==null?void 0:r.env)==null?void 0:o.DEBUG})||O(()=>{var r;return((r=t.localStorage)==null?void 0:r.getItem)&&t.localStorage.getItem(e)})||O(()=>{var r;return((r=t.sessionStorage)==null?void 0:r.getItem)&&t.sessionStorage.getItem(e)})||"";return O(()=>n.substring(0,yo),"")}s(po,"globalParameter");function ho(t){return po(t,yn).split(",").map(e=>e.trim())}s(ho,"debugPatterns");function pn(t){let e=t.replace(/\./g,"\\.").replace(/\*/g,".*");return new RegExp("^"+e+"$")}s(pn,"wildcardToRegexp");function mo(t,e=B){try{let n=ho(e),r=n.filter(o=>o[0]==="!").map(o=>o.substr(1));return r.length>0?!r.some(o=>pn(o).test(t)):n.some(o=>o==="true"||pn(o).test(t))}catch(n){return!1}}s(mo,"nameMatches");var $;(function(r){r[r.DEBUG=0]="DEBUG",r[r.INFO=1]="INFO",r[r.ERROR=2]="ERROR"})($||($={}));var Dt=class{constructor(e,n,r=new zt){this.name=e;this.logLevel=n;this.console=r}debug(e,...n){this.logLevel.valueOf()>0||this.console.debug(`[${this.name}] ${e}`,...n)}log(e,...n){this.logLevel.valueOf()>1||this.console.log(`[${this.name}] ${e}`,...n)}error(e,...n){this.logLevel.valueOf()>2||this.console.error(`[${this.name}] ${e}`,...n)}};s(Dt,"NamedLogger");function hn(t,e=B){let n=O(()=>{var r,o,c;return $[((c=(o=(r=e.process)==null?void 0:r.env)==null?void 0:o.LOG_LEVEL)==null?void 0:c.toUpperCase())||"DEBUG"]},0);return mo(t,e)?new Dt(t,n):new Gt}s(hn,"namedLogger");function E(t){return t&&O(()=>t instanceof HTMLAnchorElement,t.tagName==="A")}s(E,"isAnchor");function mn(t){return t&&O(()=>t instanceof HTMLInputElement,t.tagName==="INPUT")}s(mn,"isInput");function gn(t){return t&&O(()=>t instanceof HTMLButtonElement,t.tagName==="BUTTON")}s(gn,"isButton");function W(t){var n,r;if(E(t))return Array.from(t.relList);let e=t.form;return e?(r=(n=e.getAttribute("rel"))==null?void 0:n.split(/\s+/))!=null?r:[]:[]}s(W,"relList");function bn(t,e){if(E(t)){t.relList.contains(e)||t.relList.add(e);return}let n=t.form;if(!n)return;let r=new Set(W(t));r.add(e),n.setAttribute("rel",Array.from(r).join(" "))}s(bn,"addRel");function Wt(t,e){if(E(t)){t.relList.remove(e);return}let n=t.form;if(!n)return;let r=new Set(W(t));r.delete(e),n.setAttribute("rel",Array.from(r).join(" "))}s(Wt,"removeRel");var go=new Set([null,"","_top","_parent","_self"]);function Sn(t,e){if(E(t)){t.target=e;return}let n=t.form;if(!!n)return n.target=e}s(Sn,"setTarget");function Pe(t){let e=t.target||t.getAttribute("target");return!go.has(e)}s(Pe,"opensInNewWindow");var gt=class{static get(){return O(()=>{let e="9929.151752";return e?"v"+e:"latest"})}};s(gt,"Version");var bo=gt.get();function So(t){return`https://onboard.triptease.io/integrations/${bo}/${t}.js`}s(So,"onboard");function Ut(t){return typeof t!="string"?"":t.split(/[^A-Za-z0-9-]/)[0].replace(/-/g,"").toLowerCase()}s(Ut,"cleanName");var u;(function(o){o.Standard="Standard",o.Custom="Custom",o.Marketing="Marketing",o.Internal="Internal"})(u||(u={}));var a=class{constructor(e,n){this.name=e;this.type=n;if(!/[A-Za-z0-9]/.test(e))throw new Error("Only alpha numeric allowed");a.Lookup.set(Ut(e),this)}static values(){return Array.from(a.Lookup.values())}static parse(e){let n=a.Lookup.get(Ut(e));if(!n)throw new Error(`Invalid booking engine name: ${e}`);return n}toString(){return this.name}get canonical(){return Ut(this.name)}get folder(){return this.isSelfIntegration()?a.Default.folder:D.kebabCase(this.name)}get script(){return So(this.folder)}isSelfIntegration(){return a.SelfIntegration.has(this)}},i=a;s(i,"IntegrationName"),i.Lookup=new Map,i.AboveProperty=new a("AboveProperty",u.Standard),i.AfricaAlbida=new a("AfricaAlbida",u.Custom),i.Alaric=new a("Alaric",u.Standard),i.Ascott=new a("Ascott",u.Custom),i.ASIWebRes=new a("ASIWebRes",u.Standard),i.AtlantisORS=new a("AtlantisORS",u.Standard),i.Auberge=new a("Auberge",u.Marketing),i.AvailPro=new a("AvailPro",u.Standard),i.Avvio=new a("Avvio",u.Standard),i.Ayana=new a("Ayana",u.Custom),i.AZDS=new a("AZDS",u.Standard),i.BanyanTree=new a("BanyanTree",u.Marketing),i.BestWesternFrance=new a("BestWesternFrance",u.Custom),i.BestWesternItaly=new a("BestWesternItaly",u.Custom),i.BestWesternUk=new a("BestWesternUk",u.Custom),i.Betsy=new a("Betsy",u.Custom),i.Bloom=new a("Bloom",u.Custom),i.BookAssist=new a("BookAssist",u.Standard),i.BookEasy=new a("BookEasy",u.Standard),i.Bookolo=new a("Bookolo",u.Standard),i.BookOnlineNow=new a("BookOnlineNow",u.Standard),i.BookVisit=new a("BookVisit",u.Standard),i.Booking=new a("Booking"),i.Booking2Hotels=new a("Booking2Hotels",u.Standard),i.BookingExpert=new a("BookingExpert",u.Standard),i.BrochnerHotels=new a("BrochnerHotels",u.Custom),i.BusyRooms=new a("BusyRooms",u.Standard),i.BWHHotelGroup=new a("BWHHotelGroup",u.Custom),i.CenterHotels=new a("CenterHotels",u.Custom),i.CityExpress=new a("CityExpress"),i.Clink=new a("Clink",u.Custom),i.Clock=new a("Clock",u.Standard),i.CloudBeds=new a("CloudBeds",u.Standard),i.Cocotel=new a("Cocotel",u.Custom),i.CompuRez=new a("CompuRez",u.Standard),i.Comwell=new a("Comwell"),i.ConstanceHotels=new a("ConstanceHotels",u.Custom),i.Default=new a("Default",u.Internal),i.DerqueBooking=new a("DerqueBooking"),i.DeutscheHospitality=new a("DeutscheHospitality"),i.Dingus=new a("Dingus",u.Standard),i.Dirs21=new a("Dirs21",u.Standard),i.DoyleCollection=new a("DoyleCollection",u.Custom),i.EasyBooking=new a("EasyBooking"),i.EasyConsulting=new a("EasyConsulting"),i.Erez=new a("Erez",u.Standard),i.EGds=new a("EGds",u.Standard),i.Evancy=new a("Evancy",u.Custom),i.Exely=new a("Exely",u.Standard),i.Everly=new a("Everly",u.Custom),i.Eviivo=new a("Eviivo",u.Standard),i.ExtendedStayAmerica=new a("ExtendedStayAmerica",u.Custom),i.Ezee=new a("Ezee",u.Standard),i.FastBooking=new a("FastBooking",u.Standard),i.Firmdale=new a("Firmdale",u.Custom),i.FourSeasons=new a("FourSeasons",u.Custom),i.FrontDeskMaster=new a("FrontDeskMaster",u.Standard),i.FullertonHotels=new a("FullertonHotels",u.Custom),i.Furama=new a("Furama",u.Custom),i.GemHotels=new a("GemHotels",u.Custom),i.Generic=new a("Generic",u.Internal),i.GHS=new a("GHS",u.Standard),i.GlenEagles=new a("GlenEagles"),i.GuestCentric=new a("GuestCentric",u.Standard),i.GuestDesk=new a("GuestDesk",u.Standard),i.GuestLine=new a("GuestLine",u.Standard),i.GuestPro=new a("GuestPro",u.Standard),i.GuestRez=new a("GuestRez"),i.Guild=new a("Guild"),i.HamiltonIsland=new a("HamiltonIsland",u.Custom),i.HamiltonIslandHolidayHomes=new a("HamiltonIslandHolidayHomes",u.Custom),i.HandPickedHotels=new a("HandPickedHotels",u.Custom),i.Hart=new a("Hart",u.Standard),i.HHotels=new a("HHotels",u.Custom),i.HighLevelSoftware=new a("HighLevelSoftware",u.Standard),i.Hipotels=new a("Hipotels",u.Custom),i.HiUsa=new a("HiUsa",u.Custom),i.HotelChamp=new a("HotelChamp",u.Standard),i.Hoteliers=new a("Hoteliers",u.Standard),i.HoteliersGuru=new a("HoteliersGuru",u.Standard),i.HotelKeyApp=new a("HotelKeyApp",u.Standard),i.HotelNetSolutions=new a("HotelNetSolutions",u.Standard),i.HotelPartner=new a("HotelPartner",u.Standard),i.Hotetec=new a("Hotetec",u.Standard),i.Hotusa=new a("Hotusa",u.Standard),i.Hoxton=new a("Hoxton",u.Custom),i.HspRez=new a("HspRez",u.Standard),i.HtiSystems=new a("HtiSystems",u.Standard),i.Hyatt=new a("Hyatt",u.Custom),i.Iberostar=new a("Iberostar",u.Custom),i.Infotera=new a("Infotera",u.Standard),i.Inkaterra=new a("Inkaterra",u.Custom),i.InnQuest=new a("InnQuest",u.Standard),i.InnRoad=new a("InnRoad",u.Standard),i.InnStyle=new a("InnStyle"),i.Inntopia=new a("Inntopia",u.Standard),i.Iperbooking=new a("Iperbooking"),i.IRM=new a("IRM",u.Standard),i.JazHotels=new a("JazHotels",u.Custom),i.Journey=new a("Journey",u.Standard),i.JustBestBooking=new a("JustBestBooking",u.Standard),i.Kasa=new a("Kasa",u.Custom),i.KeaHotels=new a("KeaHotels",u.Custom),i.Kempinski=new a("Kempinski"),i.Kerzner=new a("Kerzner",u.Custom),i.LatourHotelsAndResorts=new a("LatourHotelsAndResorts",u.Custom),i.LHW=new a("LHW",u.Custom),i.LifeHouse=new a("LifeHouse",u.Custom),i.Loews=new a("Loews",u.Custom),i.Lotte=new a("Lotte",u.Custom),i.LumaHotels=new a("LumaHotels",u.Custom),i.Luxscapia=new a("Luxscapia",u.Standard),i.McDreams=new a("McDreams",u.Custom),i.Mews=new a("Mews",u.Standard),i.MgmResorts=new a("MgmResorts",u.Custom),i.MillenniumHotels=new a("MillenniumHotels",u.Custom),i.MinorHotels=new a("MinorHotels",u.Standard),i.Mirai=new a("Mirai",u.Standard),i.MotelOne=new a("MotelOne",u.Custom),i.Namastay=new a("Namastay",u.Standard),i.NativePlaces=new a("NativePlaces"),i.NeoBookings=new a("NeoBookings",u.Standard),i.NetAffinity=new a("NetAffinity",u.Standard),i.Newbook=new a("Newbook",u.Standard),i.NHHotels=new a("NHHotels"),i.Nightsbridge=new a("Nightsbridge",u.Standard),i.OKU=new a("OKU",u.Custom),i.OmegaHotelManagement=new a("OmegaHotelManagement",u.Custom),i.Omnibees=new a("Omnibees",u.Standard),i.OneHotels=new a("OneHotels",u.Standard),i.Opera=new a("Opera",u.Standard),i.OpenHotel=new a("OpenHotel",u.Standard),i.P3=new a("P3",u.Standard),i.PalaceResorts=new a("PalaceResorts"),i.PanHospitality=new a("PanHospitality",u.Standard),i.Paraty=new a("Paraty",u.Standard),i.Pegasus=new a("Pegasus",u.Standard),i.Pelican=new a("Pelican",u.Standard),i.Phobs=new a("Phobs",u.Standard),i.Planet=new a("Planet",u.Standard),i.PointAHotels=new a("PointAHotels",u.Custom),i.Prestige=new a("Prestige",u.Standard),i.ProfitRoom=new a("ProfitRoom",u.Standard),i.Protel=new a("Protel",u.Standard),i.PursuitCollection=new a("PursuitCollection",u.Custom),i.RedPlanet=new a("RedPlanet",u.Custom),i.RegalHotels=new a("RegalHotels",u.Custom),i.ReserveHotel=new a("ReserveHotel",u.Standard),i.ReserveOnline=new a("ReserveOnline",u.Standard),i.ReservationResources=new a("ReservationResources",u.Standard),i.Reservit=new a("Reservit",u.Standard),i.Reseze=new a("Reseze",u.Standard),i.ResNexus=new a("ResNexus",u.Standard),i.ResOnTheWeb=new a("ResOnTheWeb",u.Standard),i.Retargeting=new a("Retargeting",u.Internal),i.Revenatium=new a("Revenatium",u.Standard),i.Reztrip=new a("Reztrip",u.Standard),i.RGuest=new a("RGuest",u.Standard),i.RMSCloud=new a("RMSCloud",u.Standard),i.Roiback=new a("Roiback",u.Standard),i.RoomKey=new a("RoomKey",u.Standard),i.RoomMaster=new a("RoomMaster",u.Standard),i.RoomSome=new a("RoomSome",u.Standard),i.RoomStay=new a("RoomStay",u.Standard),i.SandsVegas=new a("SandsVegas",u.Custom),i.Sandrix=new a("Sandrix",u.Standard),i.Sbe=new a("Sbe",u.Standard),i.SeamillHydro=new a("SeamillHydro",u.Custom),i.Seekda=new a("Seekda",u.Standard),i.Selfbook=new a("Selfbook",u.Standard),i.Shr=new a("Shr",u.Standard),i.SimpleBooking=new a("SimpleBooking",u.Standard),i.SiteMinder=new a("SiteMinder",u.Standard),i.Skipper=new a("Skipper",u.Standard),i.Skyware=new a("Skyware",u.Standard),i.Staah=new a("Staah",u.Standard),i.StationCasinos=new a("StationCasinos",u.Custom),i.Stayntouch=new a("Stayntouch",u.Standard),i.Sweett=new a("Sweett",u.Custom),i.Synxis=new a("Synxis",u.Standard),i.SysHotelOnline=new a("SysHotelOnline",u.Standard),i.Taj=new a("Taj",u.Custom),i.ThinkReservations=new a("ThinkReservations",u.Standard),i.Travelanium=new a("Travelanium",u.Standard),i.TravelClick=new a("TravelClick",u.Standard),i.Uibscrs=new a("Uibscrs",u.Standard),i.Up=new a("Up",u.Standard),i.VacationMarbella=new a("VacationMarbella",u.Custom),i.Valamar=new a("Valamar",u.Custom),i.VandervalkOnline=new a("VandervalkOnline",u.Custom),i.VerticalBooking=new a("VerticalBooking",u.Standard),i.Viato=new a("Viato",u.Standard),i.Vinpearl=new a("Vinpearl",u.Custom),i.WebRezPro=new a("WebRezPro",u.Standard),i.WestCordHotels=new a("WestCordHotels",u.Custom),i.Witbooking=new a("Witbooking",u.Standard),i.Youngs=new a("Youngs",u.Custom),i.Zafiro=new a("Zafiro",u.Custom),i.SelfIntegration=new Set([a.Dirs21,a.HtiSystems,a.ExtendedStayAmerica]);function xn(t){let e=O(()=>t.host.toLowerCase(),""),n=t.toString().toLowerCase();if(e==="gc.synxis.com")return i.Synxis;if(e==="be.synxis.com")return i.Synxis;if(e.indexOf("travelclick")!==-1)return i.TravelClick;if(e.indexOf("thebookingbutton.")!==-1||e.indexOf("book-directonline.")!==-1||e.indexOf("direct-book.")!==-1)return i.SiteMinder;if(e.indexOf(".hyatt.")!==-1)return i.Hyatt;if(e.indexOf(".bookonthenet.")!==-1)return i.RoomKey;if(e.indexOf("firmdalehotels")!==-1)return i.Firmdale;if(e.indexOf("apxhotelsapartments")!==-1||e.indexOf("mews.li")!==-1)return i.Mews;if(e.indexOf(".guestline.")!==-1||e.indexOf(".roomlynx.")!==-1)return i.GuestLine;if(e.indexOf("book-onlinenow.net")!==-1)return i.BookOnlineNow;if(e.indexOf("windsurfercrs.com")!==-1)return i.Shr;if(e.indexOf("bestwestern.fr")!==-1)return i.BestWesternFrance;if(n.indexOf("webrez.com")!==-1||e.indexOf("worldweb.com")!==-1||e.indexOf("webrez.com/v")!==-1)return i.WebRezPro;if(e.indexOf("hoteliers.com")!==-1)return i.Hoteliers;if(e.indexOf("doylecollection")!==-1)return i.DoyleCollection;if(n.indexOf("/bookcore/")!==-1)return i.Roiback;if(e.indexOf("nativeplaces.com")!==-1)return i.NativePlaces;if(n.indexOf("/cgi-bin/lansaweb")!==-1)return i.StationCasinos;if(e==="www.palms.com")return i.StationCasinos;if(e.indexOf(".webhotel.")!==-1)return i.Opera;if(e.indexOf("online.bookvisit.")!==-1)return i.BookVisit;if(e.indexOf("direct-reservation")!==-1)return i.BusyRooms;if(e.indexOf("youngshotels")!==-1)return i.Youngs;if(e.indexOf("loewshotels")!==-1)return i.Loews;if(e.indexOf("regalhotel")!==-1)return i.RegalHotels;if(e.indexOf("live.high-level-software")!==-1)return i.HighLevelSoftware;if(e.indexOf("premiereserve.com")!==-1||e.indexOf("teg-hotels.com")!==-1)return i.Everly;if(e.indexOf("simplebooking")!==-1||e.indexOf("booking.crimsonhotel")!==-1)return i.SimpleBooking;if(e.indexOf("bookassist.com")!==-1)return i.BookAssist;if(e.indexOf("booking.africaalbidatourism.com")!==-1)return i.AfricaAlbida;if(e.indexOf("onepagebooking.com")!==-1)return i.HotelNetSolutions;if(e.indexOf("reservhotel.com")!==-1)return i.ReserveHotel;if(n.indexOf("/irmng")!==-1)return i.IRM;if(e.indexOf("booking-channel.com")!==-1)return i.Hotusa;if(e.includes(".venetian.")||e.includes(".venetianlasvegas."))return i.SandsVegas;if(e.indexOf("clock-software.com")!==-1||e.indexOf("villasriomar.com")!==-1)return i.Clock;if(["tajinnercircle.",".tajhotels.",".gateway-hotels.",".seleqtionshotels.",".vivantahotels."].some(o=>e.indexOf(o)!==-1))return i.Taj;if(e.indexOf("booking.iberostartheclub.com")!==-1)return i.Iberostar;if(e.indexOf("services.comwell.com")!==-1)return i.Comwell;if(e.indexOf(".profitroom.")!==-1)return i.ProfitRoom;if(e.indexOf("bookingexpert.it")!==-1)return i.BookingExpert;if(e.indexOf("cloud-reservations.net")!==-1)return i.Hart;if(e.indexOf("pr.palaceresorts.com")!==-1||e.indexOf("pr.moonpalace.com")!==-1||e.indexOf("pr.leblancsparesorts.com")!==-1||e.indexOf(".palaceelite.com")!==-1)return i.PalaceResorts;if(e.indexOf(".iqwebbook.com")!==-1)return i.InnQuest;if(e.indexOf("theguild.co")!==-1)return i.Guild;if(e.indexOf(".innroad.com")!==-1)return i.InnRoad;if(e.indexOf(".furama.com")!==-1)return i.Furama;if(e.indexOf(".reztrip.com")!==-1)return i.Reztrip;if(e.indexOf("nisekoportfolio.com")!==-1)return i.BookEasy;if(e.indexOf(".steigenberger.com")!==-1||e.indexOf(".intercityhotel.com")!==-1||e.indexOf(".maxxhotel.com")!==-1||e.indexOf(".jaz-hotel.com")!==-1)return i.DeutscheHospitality;if(e.indexOf(".cloudbeds.com")!==-1)return i.CloudBeds;if(e.indexOf(".thehoxton.com")!==-1)return i.Hoxton;if(e.indexOf(".lottehotel.com")!==-1)return i.Lotte;if(e.indexOf("kempinski.com")!==-1)return i.Kempinski;if(e.indexOf("derquebooking")!==-1)return i.DerqueBooking;if(e.indexOf(".gfhoteles.")!==-1)return i.DerqueBooking;if(e.indexOf(".redplanethotels.com")!==-1)return i.RedPlanet;if(e.indexOf(".banffjaspercollection.com")!==-1||e.indexOf(".glacierparkcollection.com")!==-1)return i.PursuitCollection;if(e.indexOf(".bestwestern.co.uk")!==-1)return i.BestWesternUk;if(e.indexOf(".sbe.com")!==-1)return i.Sbe;if(e.indexOf(".reserve-online.net")!==-1)return i.ReserveOnline;if(e.indexOf("secure-hotel-booking.com")!==-1)return i.AvailPro;if(e.indexOf(".syshotelonline.it")!==-1)return i.SysHotelOnline;if(e.indexOf(".reservit.com")!==-1)return i.Reservit;if(e.indexOf("vinpearl.com")!==-1)return i.Vinpearl;if(e.indexOf(".omnibees.com")!==-1)return i.Omnibees;if(e.indexOf(".hipotels.com")!==-1)return i.Hipotels;if(e.indexOf(".handpickedhotels.co.uk")!==-1)return i.HandPickedHotels;if(e.indexOf("bookings.zafirohotels.com")!==-1)return i.Zafiro;if(e.indexOf(".viatocrs.de")!==-1)return i.Viato;if(e.indexOf(".easy-booking.")!==-1)return i.EasyBooking;if(e.indexOf(".ipms247.")!==-1||e.indexOf("reservas.hotelkokai.com")!==-1)return i.Ezee;if(e.indexOf(".innstyle.")!==-1)return i.InnStyle;if(e.indexOf(".book-secure.")!==-1)return i.FastBooking;if(e.indexOf(".cityexpress.")!==-1)return i.CityExpress;if(e.indexOf(".hoteleasyreservations.")!==-1)return i.EasyConsulting;if(e.indexOf(".travelanium.")!==-1)return i.Travelanium;if(e.indexOf(".e-gds.")!==-1)return i.EGds;if(e.indexOf(".booking.com")!==-1)return i.Booking;if(e.indexOf(".iperbooking.")!==-1)return i.Iperbooking;if(e.indexOf(".okuhotels.")!==-1)return i.OKU;if(e.indexOf(".pegsbe.")!==-1)return i.Pegasus;if(e.indexOf(".the-ascott.")!==-1||e.indexOf(".discoverasr.")!==-1)return i.Ascott;if(e.indexOf("kasa.")!==-1)return i.Kasa;if(e.indexOf("verticalbooking.")!==-1)return i.VerticalBooking;if(e.indexOf(".avvio.")!==-1)return i.Avvio;if(e.indexOf(".bestwestern.it")!==-1)return i.BestWesternItaly;if(e.indexOf("extendedstayamerica.")!==-1)return i.ExtendedStayAmerica;if(e.indexOf(".fourseasons.")!==-1||e.indexOf(".fourseasonscountryclub.")!==-1||e.indexOf(".fsweb.")!==-1)return i.FourSeasons;if(e.indexOf(".hti-systems.")!==-1)return i.HtiSystems;if(e.indexOf("lhw.")!==-1)return i.LHW;if(e.indexOf("nh-hotels.")!==-1||e.indexOf(".nh-hoteles.")!==-1||e.indexOf("nh-collection.")!==-1)return i.NHHotels;if(e.indexOf(".h-hotels.")!==-1)return i.HHotels;if(e.indexOf(".1hotels.")!==-1)return i.OneHotels;if(e.indexOf(".asiwebres.")!==-1)return i.ASIWebRes;if(e.indexOf(".bwhhotelgroup.")!==-1)return i.BWHHotelGroup;if(e.indexOf(".frontdeskmaster.")!==-1)return i.FrontDeskMaster;if(e.indexOf(".evancy.")!==-1)return i.Evancy;if(e.indexOf(".brochner-hotels.")!==-1)return i.BrochnerHotels;if(e.indexOf(".welcome-anywhere.")!==-1)return i.RoomMaster;if(e.indexOf("staybloom.")!==-1)return i.Bloom;if(e.indexOf(".keahotels.")!==-1)return i.KeaHotels;if(e.indexOf("westcordhotels.")!==-1)return i.WestCordHotels;if(e.indexOf(".lumahotels.")!==-1)return i.LumaHotels;if(e.indexOf(".reservation-system.")!==-1||e.indexOf(".allhandsmarketing.")!==-1)return i.Pelican;if(e.indexOf(".pointahotels.")!==-1)return i.PointAHotels;if(e.indexOf(".hoteliers.guru")!==-1)return i.HoteliersGuru;if(e.indexOf(".reseze.")!==-1)return i.Reseze;if(e.indexOf(".aboveproperty.")!==-1)return i.AboveProperty;if(e.indexOf(".superghs.")!==-1)return i.GHS;if(e.indexOf(".rguest.")!==-1)return i.RGuest;if(e.indexOf(".onagilysys.")!==-1)return i.RGuest;if(e.indexOf(".ayana.")!==-1)return i.Ayana;if(e.indexOf("erez.")!==-1)return i.Erez;if(e.indexOf(".valamar.")!==-1)return i.Valamar;if(e.indexOf(".stayntouch.")!==-1)return i.Stayntouch;if(e.indexOf("resnexus.com")!==-1)return i.ResNexus;if(e.indexOf(".namastay.io")!==-1)return i.Namastay;if(e.indexOf("guestrez.")!==-1)return i.GuestRez;if(e.indexOf(".phobs.")!==-1)return i.Phobs;if(e.indexOf(".staah.")!==-1||e.indexOf(".swiftbook.")!==-1)return i.Staah;if(e.indexOf(".hamiltonisland.")!==-1||e.indexOf(".qualia.")!==-1)return i.HamiltonIsland;if(e.indexOf(".hamiltonislandholidayhomes.")!==-1)return i.HamiltonIslandHolidayHomes;if(n.indexOf("luxguests")!==-1)return i.Luxscapia;if(n.indexOf(".thinkreservations.")!==-1)return i.ThinkReservations;if(n.indexOf(".witbooking.")!==-1)return i.Witbooking;if(n.indexOf(".onejourney.")!==-1)return i.Journey;if(n.indexOf(".resontheweb.")!==-1)return i.ResOnTheWeb;if(e.indexOf(".bookoloengine.")!==-1)return i.Bookolo;if(e.indexOf(".openhotel.")!==-1)return i.OpenHotel;if(e.indexOf(".revenatium.")!==-1)return i.Revenatium;if(e.indexOf(".millenniumhotels.")!==-1)return i.MillenniumHotels;if(e.indexOf(".hotelkeyapp.")!==-1)return i.HotelKeyApp;if(e.indexOf(".omegahotelmanagement.")!==-1)return i.OmegaHotelManagement;if(e.indexOf(".panhospitality.")!==-1)return i.PanHospitality;if(e.indexOf(".skywaresystems.")!==-1)return i.Skyware;if(e.indexOf(".guestcentric.net")!==-1)return i.GuestCentric;if(e.indexOf(".justbestbooking.")!==-1)return i.JustBestBooking;if(e.indexOf(".nightsbridge.")!==-1)return i.Nightsbridge;if(e.indexOf(".rmscloud.")!==-1)return i.RMSCloud;if(e.indexOf("honeycomb.rt.triptease.io")!==-1||e.indexOf("b.triptease.io")!==-1)return i.Retargeting}s(xn,"bookingEngines");var On=U(Rt()),wn=U(Ce());function Vt(t){var e;return((e=t.host)==null?void 0:e.split("."))||[]}s(Vt,"parts");function vn(t,e){let n=Vt(t).reverse(),r=Vt(e).reverse(),o=0;for(let[c,l]of(0,On.array)(n,(0,wn.zip)(r)))if(c===l)o++;else break;return o>=3?!0:o===2?[n[o],r[o]].filter(c=>![void 0,"www"].includes(c)).length<=1:!1}s(vn,"sameDomain");function je(t){let[e]=Vt(t);return e}s(je,"subdomain");var xo=new Set([void 0,i.Default]);function kn(t){return!xo.has(xn(t))}s(kn,"knownBookingEngine");function _n(t,e){if(t.host===e.host)return!1;let n=vn(t,e);return!!(!n&&kn(e)||n&&wo(e))}s(_n,"isBookingEngineUrl");var Oo=["book","reservation","reservas"];function wo(t){let e=je(t);return e&&Oo.some(n=>e.includes(n))}s(wo,"isBookingSubDomain");var vo=new Set(["book now","book","book room","book your stay","booking","check rates","check availability","cancel reservation","my reservations","reservations","reserve agora","show availability"]);function Cn(t){return bt(t).some(e=>vo.has(e))}s(Cn,"hasBookNowLabel");function Ft(t,e){let n=new k(e.href);return!!(_n(t,n)||Cn(e))}s(Ft,"isBookingEngineAnchor");function Kt(t,e){let n=e.form;if(!n)return!1;let r=new k(e.formAction||e.getAttribute("formaction")||n.action);return!!(_n(t,r)||Cn(e))}s(Kt,"isBookingEngineInput");function An(t,e){return kn(t)?!1:E(e)?Ft(t,e):Kt(t,e)}s(An,"isBookingEngineButton");function bt(t){return[t.innerText||t.textContent,t.value,t.title,t.getAttribute("alt")].filter(Boolean).map(e=>e.trim().toLowerCase())}s(bt,"labels");var ko=hn("cross-domain-tracking"),_o={preserveRel:!1,preserveTarget:!1},St=class{constructor(e,n={}){this.window=e;this.eventHandler=s(e=>{try{(E(e.target)||mn(e.target)||gn(e.target))&&this.handleClick(e.target)}catch(n){ko.error("eventHandler threw error ",n)}},"eventHandler");this.config=Be(Be({},_o),n)}enable(){this.window.addEventListener("click",this.eventHandler,{capture:!0,passive:!0})}disable(){this.window.removeEventListener("click",this.eventHandler)}handleClick(e){this.matches(e)&&(this.handleOpener(e),this.handleReferrer(e),this.handleNewWindow(e))}matches(e){var r;if(this.config.customSelector)return!E(e)&&((r=e.form)==null?void 0:r.matches(this.config.customSelector))?!0:e.matches(this.config.customSelector);let n=new k(this.window.location.href);return An(n,e)}handleOpener(e){let n=W(e);if(n.includes("noopener")){if(this.config.preserveRel)return;Wt(e,"noopener")}n.includes("opener")||bn(e,"opener")}handleReferrer(e){var r;if(W(e).includes("noreferrer")){if(this.config.preserveRel)return;Wt(e,"noreferrer")}E(e)?e.referrerPolicy="no-referrer-when-downgrade":(r=e.form)==null||r.setAttribute("referrerpolicy","no-referrer-when-downgrade")}handleNewWindow(e){Pe(e)||this.config.preserveTarget||Sn(e,"_blank")}};s(St,"CrossOriginTracking");function Co(t){let e=new k(t.href);return{type:t.tagName.toLowerCase(),uri:t.href,subdomain:je(e),classList:Array.from(t.classList),relList:W(t),newWindow:Pe(t),target:t.getAttribute("target")||"_self",labels:bt(t)}}s(Co,"analyseAnchor");function Ao(t){let e=t.form;if(!e)return[];let n=new k(e.action);return[{type:t.tagName.toLowerCase(),uri:e.action,subdomain:je(n),classList:[...Array.from(t.classList),...Array.from(e.classList)],relList:W(t),newWindow:Pe(e),target:e.getAttribute("target")||"_self",labels:bt(t)}]}s(Ao,"analyseInput");function Hn(t){let e=new k(t.location.href),r=Array.from(t.document.querySelectorAll("a[href]")).filter(d=>Ft(e,d)).map(Co),c=Array.from(t.document.querySelectorAll("form[action] input[type=submit], form[action] button[type=submit]")).filter(d=>Kt(e,d)).flatMap(Ao),l=[...r,...c],f=l.reduce((d,y)=>Object.keys(d).reduce((g,A)=>(g[A]=g[A].concat(y[A]),g),d),{type:[],uri:[],subdomain:[],classList:[],relList:[],newWindow:[],target:[],labels:[]});return{data:l,summary:f}}s(Hn,"findBookingButtons");var Tn=new St(window);Re(window).onboard.CrossOriginTracking=Tn;Re(window).onboard.findBookingButtons=()=>Hn(window);Tn.enable();})();